<?php require_once('Connections/fastfood_con.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_fastfood_con, $fastfood_con);
$query_rs_top_baner = "SELECT * FROM top_baner ORDER BY my_order ASC";
$rs_top_baner = mysql_query($query_rs_top_baner, $fastfood_con) or die(mysql_error());
$row_rs_top_baner = mysql_fetch_assoc($rs_top_baner);
$totalRows_rs_top_baner = mysql_num_rows($rs_top_baner);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>banner top</title>
    <link rel="stylesheet" type="text/css" href="css/preview.css"/>
	<link rel="stylesheet" type="text/css" href="css/wt-rotator.css"/>
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.wt-rotator.min.js"></script>
	<script type="text/javascript" src="js/preview.js"></script>    
</head>
<body bgColor=black>
<div class="panel">
	
 	<div class="container">
        <div class="wt-rotator">
            <a href="#"></a>            
            <div class="desc"></div>
            <div class="preloader"></div>
            <div class="c-panel">
                <div class="buttons">
                    <div class="prev-btn"></div>
                    <div class="play-btn"></div>    
                    <div class="next-btn"></div>               
                </div>
                <div class="thumbnails">
                    <ul>
                        <?php do { ?>
                        <li>
                            <a href="images/baner/<?php echo $row_rs_top_baner['my_baner']; ?>" title="title"></a>
                            <a href="<?php echo $row_rs_top_baner['my_link']; ?>" target="_blank"></a> 
                          <div style="left:5px; top:340px; width:306px;">
                          <span class="cap-title"><?php echo $row_rs_top_baner['my_content']; ?></span></div> 
                          </li>
                          <?php } while ($row_rs_top_baner = mysql_fetch_assoc($rs_top_baner)); ?>
                    </ul>
                </div>     
            </div>
        </div>	
  </div>
    </div>
</body>    
</html>
<?php
mysql_free_result($rs_top_baner);
?>
